#ifndef CAPTURE_H
#define CAPTURE_H

#ifdef __cplusplus
extern "C"{
#endif

#define VIDEO_DEV_NAME "/dev/video0"
//固定摄像头输出画面的尺寸
#define VIDEO_WIDTH  640
#define VIDEO_HEIGHT 480

int VideoDeviceInit(char *DEVICE_NAME);
void get_video_data(char *video_buf);
void yuyv_to_rgb(unsigned char *yuv_buffer,unsigned char *rgb_buffer,int iWidth,int iHeight);
#ifdef __cplusplus
}
#endif
#endif // CAPTURE_H
